package com.infore.exchange.main.service.impl;

import com.infore.common.model.dto.exchange.JobTaskInfoQuartz;
import com.infore.common.model.entity.exchange.TJobTaskInfo;
import com.infore.common.model.entity.exchange.TTaskInfo;
import com.infore.exchange.main.dao.TJobTaskInfoMapper;
import com.infore.exchange.main.service.TJobTaskInfoService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 作业任务关联表 服务实现类
 * </p>
 *
 * @author lijh
 * @since 2023-02-13
 */
@Service
public class TJobTaskInfoServiceImpl extends ServiceImpl<TJobTaskInfoMapper, TJobTaskInfo> implements TJobTaskInfoService {


    @Autowired
    private TJobTaskInfoMapper jobTaskInfoMapper;

    @Override
    public List<JobTaskInfoQuartz> queryJobTaskInfoQuartzByJobId(String jobId,Integer jobState,Integer taskState, Integer runningState) {
        return jobTaskInfoMapper.queryJobTaskInfoQuartzByJobId(jobId,jobState,taskState,runningState);
    }


    @Override
    public List<TTaskInfo> queryTaskInfoByJobId(String jobId, Integer taskState) {
        return jobTaskInfoMapper.queryTaskInfoByJobId(jobId,taskState);
    }
}
